# encoding: UTF-8
 
class Photo < ActiveRecord::Base

  attr_accessible :category, :status, :title, :image

  scope :open_status, where(:status => 0)

  scope :screen, where(:category => 8)
  scope :design, where(:category => 9)
  scope :player, where(:category => 10)

  mount_uploader :image, ImageUploader

end
